package com.bawei.lib_storage


import android.util.TimeUtils
import com.tencent.mmkv.MMKV

/**
 *author：yjk
 *description:
 *date：2025/6/9
*/
object AuthMMKV: MMKVOwner {
    //  MMKV实例 auth文件中
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID("auth")

    //token
    var token by MMKVProperty("")

    // 已登录
    fun hasLogin() = token.isNotEmpty()
    //签到
    var isSignInA by MMKVProperty(false)//上午
    var isSignInB by MMKVProperty(false)//下午
    var morningSignIn by MMKVProperty("9:00:00")//上午 签到时间
    var afternoonSignIn by MMKVProperty("18:00:00")//下午 签到时间
}